Strict

Import mojo
Import agfx
Import mnet
Import agfx_score


Global myTmpScreen:TTmpScreen

Class TAgfx_test_app Extends TFramework

	Method OnCreate:Int()
		
		Super.OnCreate()
				
		myTmpScreen = New TTmpScreen		
		myTmpScreen.Prepare()
		
		Return 0
	End
	

End


Class TTmpScreen Extends TScreen
	
	Field SCORE:TScoreTable

	' START when app is created
	Method Start:Void()

		Self.SCORE = New TScoreTable("TEST_GAME1")

		'Self.SCORE.SaveScore("AndyGFX",Rnd(0,100))

		Self.SCORE.LoadScore()
	
		
	End
	
	' main app logic loop update
	Method Update:Void()
		
	End
	
	' main app render loop
	Method Render:Void()
		Cls
		DrawText(Self.SCORE.result,10,10)
	End
End
